import QtQuick 2.0

import "../../js/UI.js" as UI

Rectangle {

    width: m_root_id.width
    height: UI.IconTextScale * m_lineValue

    property alias m_text: label.text
    property alias m_infotext: infoLabel.text

    signal clickSignal

    AText {
        id: label
        color: UI.IconTextColor
        font.pointSize: UI.IconTextFontSize
        anchors.verticalCenter: parent.verticalCenter
        anchors.left: parent.left
        anchors.leftMargin: UI.LeftScale * m_lineValue
    }

    AText {
        id: infoLabel
        color: UI.AboutVersionTextColor
        font.pointSize: UI.IconTextFontSize
        anchors.verticalCenter: parent.verticalCenter
        anchors.right: parent.right
        anchors.rightMargin: UI.RightScale * m_lineValue
    }

    MouseArea {
        anchors.fill: parent
        onClicked: clickSignal()
    }
}

